Tweak icon for suprise cache type on maggeo write.
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Thu, 9 Mar 2006 07:12:03 +0000 (07:12 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Thu, 9 Mar 2006 07:12:03 +0000 (07:12 +0000)
gpsbabel/maggeo.c

index bb645f622f4fcc11a53bf5531121e3750a68b33a..6c5f9c288ca94a74afec9ac3f319bb6f602106fb 100644 (file)
@@ -160,7 +160,15 @@ maggeo_waypt_pr(const waypoint *waypointp)
        lon = (lon_deg * 100.0 + lon);
        lat = (lat_deg * 100.0 + lat);
 
-       ctype = gs_get_cachetype(waypointp->gc_data.type);
+       /* 
+        * For some reason, Magellan used exactly the GPX spellings of 
+        * everything except this one...
+        */
+       if (waypointp->gc_data.type == gt_suprise) {
+               ctype = "Mystery Cache";
+       } else {
+               ctype = gs_get_cachetype(waypointp->gc_data.type);
+       }
        placeddate = maggeo_fmtdate(waypointp->creation_time);
        lfounddate = maggeo_fmtdate(waypointp->gc_data.last_found);
        cname = mkshort(desc_handle, waypointp->notes ? waypointp->notes : waypointp->shortname);